//
//  Config.swift
//  Swift_sina
//
//  Created by TFB_WGP on 2017/8/17.
//  Copyright © 2017年 TFB_WGP. All rights reserved.
//

import UIKit
import SnapKit


// 打印出来的语句：文件名+行数+方法名+你想输出的东西，好用！

func WPPrint(file: String = #file, line: Int = #line, function: String = #function, items: Any) {
    
    #if DEBUG
        print("文件: \((file as NSString).lastPathComponent), 行数: \(line), 函数: \(function): => \(items)")
    #endif
    
}

//MARK: - 应用程序信息
let WBAppKey = "4102460147"
let WBAppSecret = "fd6ac83b5cf660e1adec5b0a16ac7424"
let WBRedirect_uri = "https://www.baidu.com/"

//MARK: - 全局通知定义
let WBUserShouldLoginNotifiction = "WBUserShouldLoginNotifiction"
let WBUserLoginSuccessNotifiction = "WBUserLoginSuccessNotifiction"


//MARK: - main.json文件路径
let jsonPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0].appending("/Main.json")
let userAccountJsonPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0].appending("/userAccount.json")

//MARK: - 屏幕的宽高
let SCREEN_WIDTH = UIScreen.cz_screenWidth()
let SCREEN_HEIGHT = UIScreen.cz_screenHeight()


//MARK: - 字体颜色和大小
let titleFont: CGFloat = 18
let tipFont: CGFloat = 14
let btnFont: CGFloat = 16
